package com.glut.gultguy.mapper;

import com.glut.gultguy.entity.GoodsAuctionRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-09-05
 */
public interface GoodsAuctionRecordMapper extends BaseMapper<GoodsAuctionRecord> {

    @Delete("delete from goodsAuctionRecord where goodsId = #{goodsId}")
    Integer deleteRecode(@Param("goodsId") String goodsId);

    @Select("select * from goodsAuctionRecord where _openid = #{openId}")
    List<GoodsAuctionRecord> getUserRrcord(String openId);
}
